<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{$data['subsidiary']}}</title>
</head>
<style>
    td{
        white-space: nowrap;
    }
</style>
<body>
<div class=""
     style="font-family:songti;line-height: 14px;font-size: 10px;margin: 0 auto;">
    <h2 style="text-align: center;">{{$data['subsidiary']}}</h2>
    <h2 style="text-align: center;">送货单</h2>
    <table width="100%" border='0'>
        <tbody>
        <tr>
            <td rowspan="1" colspan="3">联系电话：{{$data['order_mobile']}}</td>
        </tr>
        <tr>
            <td rowspan="1" colspan="3">联系人：{{$data['order_name']}}</td>
        </tr>
        <tr>
            <td width="33%">购货单位：{{$storeInfo['store_name']}}</td>
            <td width="33%">日期：{{date('Y-m-d',time())}}</td>
            <td width="33%">编号：{{$data['order_sn']}}</td>
        </tr>
        <tr>
            <td>源单类型：销售订单</td>
            <td>选单号：{{$data['tracking_number']}}</td>
            <td>销售方式：现销</td>
        </tr>
        <tr>
            <td>交货地点：</td>
            <td>收货地址2：</td>
            <td></td>
        </tr>
        <tr>
            <td rowspan="1" colspan="3">收货地址：{{ $data['order_province'] }}-{{ $data['order_city'] }}
                -{{ $data['order_area'] }} {{$data['order_address']}}</td>
        </tr>
        </tbody>
    </table>
    <table width="100%" border="1" cellspacing="0" style="text-align: center;">
        <tr>
            <th>行号</th>
            <th>代码</th>
            <th>产品名称</th>
            <th>规格</th>
            <th>发货仓库</th>
            <th>实发数</th>
            <th>单位</th>
            <th>零售单价</th>
            <th>零售金额</th>
        </tr>
        @foreach($goodsList as $kk => $vv)
            <tr>
                <td>{{$kk+1}}</td>
                <td>{{$vv['goods_sn']}}</td>
                <td>{{$vv['goods_name']}}</td>
                <td>{{$vv['goods_specification']}}</td>
                <td>-</td>
                <td>{{$vv['goods_number']}}</td>
                <td>{{$vv['goods_unit']}}</td>
                @if($vv['is_give'] ==1)
                    <td>0</td>
                    <td>0</td>
                @else
                    <td>{{$vv['goods_price_yu']}}</td>
                    <td>{{$vv['goods_price_yu']* $vv['goods_number']}}</td>
                @endif
            </tr>
        @endforeach
        <tr>
            <td>合计</td>
            <td>-</td>
            <td>-</td>
            <td>-</td>
            <td>-</td>
            <td>{{$total['num']}}</td>
            <td>-</td>
            <td>{{$total['goods_price_yu']}}</td>
            <td>{{$total['goods_price_zn']}}</td>
        </tr>
    </table>
    <table width="100%" border='0'>
        <tbody>
        <tr class="firstRow">
            <td valign="top" rowspan="1" colspan="4" style="text-align: center">
                注：敬请尽快验收货物，如有不符，请速与我司联系！请将送货单保存两年，以方便对账，谢谢！
            </td>
        </tr>
        <tr class="firstRow">
            <td valign="top" rowspan="1" colspan="4" style="text-align: center">联系人：sisi 联系电话：021-61575116</td>
        </tr>
        <tr class="firstRow">
            <td valign="top" rowspan="1" colspan="4"><br/></td>
        </tr>
        <tr class="firstRow">
            <td valign="top" rowspan="1" colspan="4">发货人：</td>
        </tr>
        @if($data['update_user'])
            <tr>
                <td width="25%">制单人：{{$data['update_user']}}</td>
                <td width="25%">审核：{{$data['update_user']}}</td>
                <td width="25%">审核日期：{{$data['updated_at']}}</td>
                <td width="25%">记账：{{$data['update_user']}}</td>
            </tr>
        @else
            <tr>
                <td width="25%">制单人：暂无</td>
                <td width="25%">审核：未审核</td>
                <td width="25%">审核日期：暂无</td>
                <td width="25%">记账：暂无</td>
            </tr>
        @endif
        </tbody>
    </table>
</div>
</body>
</html>
